﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/MasterPage_Base.master"
    AutoEventWireup="true" CodeFile="LinkManage.aspx.cs" Inherits="System_Other_LinkManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="Server">
    友情链接
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <table class="DataList" border="0" style="margin-top: 10px;">
        <col style="width: 100px;" />
        <col style="width: 300px;" />
        <col style="width: 60px;" />
        <col style="width: 90px;" />
        <col style="width: 100px;" />
        <tr>
            <th>
                链接名称
            </th>
            <th>
                链接地址
            </th>
            <th>
                排序
            </th>
            <th>
                状态
            </th>
            <th>
                操作
            </th>
        </tr>
        <asp:Repeater ID="RepeaterList" runat="server" OnItemCommand="RepeaterList_ItemCommand"
            OnItemDataBound="RepeaterList_ItemDataBound">
            <ItemTemplate>
                <tr>
                    <td>
                        <div style="width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" title='<%# Eval("LinkName") %>'>
                            <%# Eval("LinkName")%>
                        </div>
                    </td>
                    <td>
                        <div style="width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" title='<%# Eval("LinkURL") %>'>
                            <%# Eval("LinkURL")%>
                        </div>
                    </td>
                    <td style="text-align: center;">
                        <%#Eval("OrderNo") %>
                    </td>
                    <td style="text-align: center;">
                        <asp:Label ID="ValidText" runat="server" Text="启用"></asp:Label>
                        <asp:LinkButton ID="BtnOperate" runat="server" CommandName="Valid" CommandArgument='<%#Eval("LinkId") %>'>修改</asp:LinkButton>
                    </td>
                    <td>
                        <asp:LinkButton ID="lbtn_Update" runat="server" CommandName="Update" CommandArgument='<%#Eval("LinkId") %>'>编辑</asp:LinkButton>
                        <asp:LinkButton ID="lbtn_Delete" runat="server" CommandName="Delete" CommandArgument='<%#Eval("LinkId") %>' OnClientClick="return isDelete()">删除</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
         <tr>
            <td>
                <asp:TextBox ID="txt_LinkName" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txt_LinkURL" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txt_OrderNo" runat="server" Text="0" Width="60"></asp:TextBox>
            </td>
            <td>
            </td>
            <td>
                <asp:LinkButton ID="lbtn_Submit" runat="server" onclick="btn_Submit_Click">新增</asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
